package com.ming.feign;

import com.ming.domain.Prod;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author:何元才
 * @Desc:
 * @data:2021-04-02 16:13
 */
@FeignClient(value = "product-service")
public interface IndexImgProdFeign {

    /**
     * 远程调用根据商品id查询商品对象
     * @param prodId
     * @return
     */
    @PostMapping("prod/prod/getProdById")
    Prod getProdById(@RequestParam Long prodId);
}
